import pyautogui, win32gui

def get_image_pos(image,  **kwargs):
  # print("get image pos %s", image)
  pos = None
  try:
    pos = pyautogui.locateCenterOnScreen(image,  **kwargs)
  except Exception as e:
    print(e)
  return pos

def focus_wow_handle():
  wow_handle = win32gui.FindWindow(None, '魔兽世界')
  win32gui.SetForegroundWindow(wow_handle)
  
